<?php
/**
 * 学院
 * Created by PhpStorm.
 * User: xsh
 * Date: 2018/4/25  11:58
 */
namespace app\home\Controller;
use think\Controller;

class Shool extends Base
{
    /*
    *	构造函数
    */
    function __construct()
    {
        parent::__construct();
        parent::getSibar(3);
    }

    public function index()
    {
        $data = db('shool')->field('content')->where('id', 1)->find();
        $this->assign('data', $data);
        return $this->fetch('shool/college');
    }

    public function college_team()
    {
        $data = db('shool')->where('id', 'not in', 1)->select();
//        halt($data);
        $this->assign('data', $data);
        return $this->fetch();
    }

    public function college_detail()
    {
        $id = input('id');
        $data = db('shool')->where('id', 1)->find();
        $this->assign('data', $data);
        return $this->fetch();
    }

    public function college_page()
    {
        $id = input('id');
        parent::getSibarArticle($id);
        return $this->fetch();
    }
}